#include "MyListener.h"
#include <iostream>

void MyListener::startTest(CPPUNIT_NS::Test* test)
{
	std::cout << "Start of test: " << test->getName() << std::endl;
}

void MyListener::addFailure(const CPPUNIT_NS::TestFailure& failure)
{
	std::cout << "Failure encountered." << std::endl << failure.failedTestName() << std::endl;
}

void MyListener::endTest(CPPUNIT_NS::Test* test)
{
	std::cout << "End of test: " << test->getName() << std::endl;
}
